package tr.edu.metu.is.mega.client.core;

import java.util.List;

/**
 * Interface for generic dialog callback.
 * 
 * @param <T> type modifier
 */
public abstract class DialogCallbackAdapter<T> implements DialogCallback<T> {

    /**
     * {@inheritDoc}
     */
    @Override
    public void onCancel() {
        // do nothing
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public void onOk(List<T> params) {
        onOk(params.get(0));
    }

}
